/*
 * @Author: mikey.zhaopeng 
 * @Date: 2019-12-20 17:40:05 
 * @Last Modified by: taosong
 * @Last Modified time: 2019-12-21 14:16:49
 */
const path = require('path')
const px2rem = require('postcss-px2rem');
const postcss = px2rem({
    remUnit: 100
});

module.exports = {
    css: {
        loaderOptions: {
            postcss: {
                plugins: [
                    postcss
                ]
            }
        }
    },
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.resolve(__dirname, 'src/'),
                'api': path.resolve(__dirname, 'api/'),
                'common': path.resolve(__dirname, 'src/common'),
                'js': path.resolve(__dirname, 'js/')
            }
        }
    }
}